﻿namespace Domain.DTOs.BOMs
{
    public class BOMDTO
    {
        /// <summary>
        ///    主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 物品编号
        /// </summary>
        public string Itemcode { get; set; }
        /// <summary>
        /// 子级Id
        /// </summary>
        public string ChilderId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Goodsname { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Spec { get; set; }

        /// <summary>
        /// 单位（个、米、千克等）
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 分类（成品/半成品/原材料）
        /// </summary>
        public string Category { get; set; }

        /// <summary>
        /// 物料清单版本
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Number { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否使用
        /// </summary>
        public bool IsUse { get; set; }

        /// <summary>
        /// 父级Id
        /// </summary>
        public string Parentid { get; set; }
        /// <summary>
        /// 子级Id
        /// </summary>
        public string ChildrenId { get; set; }
        /// <summary>
        ///删除标识
        /// </summary>
        public bool IsDel { get; set; }
        /// <summary>
        /// 子级
        /// </summary>
        public List<BOMDTO> Children { get; set; }
    }
}
